package com.androwit.engine.mapping;

/**
 * Defines methods to translate a {@link Object} object's {@link MappingField}
 * to and from its persistence form (<V>)equivalent.
 * 
 * @param <J>
 *            the java side type of the field
 * @param <V>
 *            the persistence side type of the field
 * 
 * @author Zied Hamdi Founder of http://1vu.fr,  Zied Hamdi
 * 
 */
public interface Converter<J, V> {

	public J fromConverted(V value) throws Exception;

	public V convert(J value) throws Exception;
}
